package router

import (
	"github.com/gin-gonic/gin"
	"order_bff/api/shop_cart"
	"order_bff/middlerware"
)

func InitShopCartRouter(router *gin.Engine) {

	ShopCartRouter := router.Group("s/v1/shop_cart").Use(middlerware.CheckToken())
	{
		ShopCartRouter.GET("", shop_cart.List)      //购物车列表
		ShopCartRouter.POST("", shop_cart.Create)   //添加购物车
		ShopCartRouter.PUT("", shop_cart.Update)    //更新购物车
		ShopCartRouter.DELETE("", shop_cart.Delete) //删除购物车
	}
}
